1bashThis demonstrates checking if a given path is a directory using the -d test operator in Bash.[[ -d FILE ]]bash internalflow controltests (conditions)file and directory conditionsdirectory test (-d)